/**
 * 加载讲师列表窗口
 * @param selectType 选择类型，单选/金毛
 * @param subjectIds 专业ID
 * @param callbackFunName 回调方法名
 * @param type 类型，1普通查询，2免费直播查询讲师（免费直播要排除选择过的讲师）
 * @param teacherIdentity 讲师身份，1讲师，2班主任
 */
function selectTeacher(selectType,subjectIds,callbackFunName,teacherIdentity) {
    if(!selectType || $.trim(selectType)=='' || typeof selectType =='selectType'){
        selectType = '';
    }
    var url = baseloaction + "/admin/manage/teacher/selectTeacherList?selectType="+selectType+"&teacherIdentity="+teacherIdentity;
    if(!$.isEmptyObject(subjectIds)){
        url += "&subjectIds="+ subjectIds;
    }
    parent.layer.open({
        type: 2,
        shadeClose: false,
        shade: [0.3, '#000000'],
        title: '<strong>选择讲师</strong>',
        area: winArea,
        content: url,
        btn: ['选择', '取消'],
        yes: function(index, layero) {
            var _iframe = layero.find("iframe:visible");
            var iframeName = _iframe[0].name;
            var teacher = parent.frames[iframeName].getSelectTeacher();
            if(teacher){
                var currentIframeName = contentMainIframeName();
                parent.frames[currentIframeName][callbackFunName](teacher);
                parent.layer.close(index);
            }
        }
    });

}